package com.shop.cloud.model.request;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@ToString(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler", "fieldHandler" }, ignoreUnknown = true)
public class AssignAuthorityRequest {
	
	public static int AUTHORITY_ALL = 1;		// 全部
	public static int AUTHORITY_SELF = 2;	// 仅本店

	@JsonProperty("position")
	@ApiModelProperty(value = "角色职位id", example = "", required = true)
	private Long position;
	
	@JsonProperty("authority")
	@ApiModelProperty(value = "权限", example = "", required = true)
	private int authority;
	
	@JsonProperty("resourceIds")
	@ApiModelProperty(value = "菜单资源id", example = "", required = true)
	private List<Long> resourceIds;

	public Long getPosition() {
		return position;
	}

	public void setPosition(Long position) {
		this.position = position;
	}

	public int getAuthority() {
		return authority;
	}

	public void setAuthority(int authority) {
		this.authority = authority;
	}

	public List<Long> getResourceIds() {
		return resourceIds;
	}

	public void setResourceId(List<Long> resourceIds) {
		this.resourceIds = resourceIds;
	}
	
	
}
